package com.chery.foxlogrecord.extension.operation.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chery.foxlogrecord.core.pojo.ObjectDiffDTO;
import com.chery.foxlogrecord.extension.operation.entity.Operation;
import com.chery.foxlogrecord.extension.operation.pojo.dto.OperationPageDto;
import com.chery.foxlogrecord.extension.operation.pojo.dto.OperationPageVO;

import javax.validation.Valid;

/**
 * @author qiangt
 * @version 1.0
 * @date 2023/12/5 11:11
 * @description: 操作记录service
 */
public interface OperationService extends IService<Operation> {
    /**
     * 根据业务id分页查询数据
     * @param pageDto
     * @return
     */
    Page<Operation> pageByBusinessId(@Valid OperationPageDto pageDto);

    /**
     * 根据业务id分页查询数据
     * @param pageDto
     * @return
     */
    Page<OperationPageVO> pageDetailByBusinessId(@Valid OperationPageDto pageDto);

    /**
     * 操作记录存表
     * @param objectDiffDTO
     */
    void save(ObjectDiffDTO objectDiffDTO);

    /**
     * 异步操作记录存表
     * @param objectDiffDTO
     */
    void asycSave(ObjectDiffDTO objectDiffDTO);
}
